home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / stistics.arc / GEOMET.DOC < prev    next >
Text File  |  1988-07-24  |  2KB  |  54 lines

  1.                            GEOMETRIC PROGRESSION
  2. AIM
  3.  
  4. This  program  fits a geometric curve to a set of  coordinates,  using  the 
  5. method  of least  squares.   The  equation, coefficient of   determination,  
  6. coefficient  of correlation and standard error of the estimate are printed.
  7.  
  8. EXAMPLE
  9.  
  10. The  data  shown  below gives the pressure of a  gas  measured  at  various 
  11. volumes  in an experiment.  The relationship between pressure and volume of 
  12. gas is expressed by the equation:
  13.                                     K
  14.                                   PV  = C
  15.  
  16. where   P = pressure, V = volume, and C and K are constants.   The  formula 
  17. can be rewritten in standard geometric form, as follows:
  18.                                        -K
  19.                                  P = CV
  20.  
  21. Note  that  the  exponent  is negative, which  accounts  for  the  negative 
  22. exponent  when this data is calculated by the program.  The problem  is  to 
  23. fit  a  geometric curve to the data below, and to estimate the pressure  of 
  24. 90 cubic inches of  the gas.
  25.  
  26.                                VOLUME     PRESSURE
  27.                                 56.1        57.0
  28.                                 60.7        51.0
  29.                                 73.2        39.2
  30.                                 88.3        30.2
  31.                                120.1        19.6
  32.                                187.5        10.5
  33.  
  34. Note  that the data may be entered from the keyboard, or from a  data  file 
  35. created  in the non-document mode of WordStar.  The format for a data  file 
  36. is:
  37.  
  38.       Test Data         <== Title of up to 65 characters of any kind.
  39.       56.1  57          <== X value 1, one or more spaces, Y value 1
  40.       60.7  51          <== X value 2, one or more spaces, Y value 2
  41.       73.2  39.2        <== .
  42.       88.3  30.2        <== .
  43.       120.1 19.6        <== .
  44.       187.5 10.5        <== X value N, one or more spaces, Y value N
  45.  
  46. Data for interpolation must be entered via keyboard.
  47.  
  48. REFERENCE:  Poole,  L. and M. Borchers  1979  Some Common Basic   Programs,  
  49.             3rd ed. Osborne/McGraw-Hill, Berkeley, California.
  50.  
  51. BASIC VERSION:   Dr. Stanley Kaplan     Nov 84
  52. PASCAL VERSION:  Dr. Stanley Kaplan     Feb 87 (Version 1.0)
  53. UPDATES:                                Feb 88 (MS-DOS Version 2.0)
  54.